<div class="modal-content">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" ng-click="save()">×</button>
    <h4 class="modal-title text-center">文件上传</h4>
  </div>
  <div class="modal-body">
    <form class="form-horizontal" novalidate>
      <fieldset class="p-l-20 p-r-20 p-t-20">
        <div class="form-group m-b-30">
          <label class="col-md-3 control-label">添加门店名:</label>
          <div class="col-md-8 fileTag">
            <!--<tags-input ng-model="ss" class="ti-input-sm" min-length="1"></tags-input>-->
            <input type="text" class="form-control" ng-model="tag">
          </div>
        </div>
        <div class="form-group text-center">
          <button type="button" class="btn btn-sm btn-inverse" ngf-select="onSelect($files)" ng-model="file"
                  ngf-multiple="true" ngf-max-size="50MB">
            <i class="fa fa-cloud-upload" aria-hidden="true"></i>&nbsp;选择文件
          </button>
        </div>
      </fieldset>
    </form>
    <div class="well p-0 m-t-10" ng-show="showFiles">
      <table class="table table-valign-middle m-b-0">
        <tbody>
        <tr ng-repeat="item in files">
          <td>{{item.name}}</td>
          <td>
              <span ng-if="item.size<1000">
                {{item.size}}bytes
              </span>
            <span ng-if="item.size>=1000&&item.size<100000">
                {{(item.size/1000).toFixed(1)}}kB
              </span>
            <span ng-if="item.size>=100000">
                {{(item.size/1000000).toFixed(1)}}MB
              </span>
          </td>
          <td width="120">
            <div class="progress progress-striped progress-sm active m-b-0">
              <div class="progress-bar progress-bar-success" ng-style="{width:item.progress+'%'}">
                {{item.progress}}%
              </div>
            </div>
          </td>
          <td>
              <span ng-if="item.success===true" class="text-success">
                <i class="fa fa-check-circle" aria-hidden="true"></i>
              </span>
            <span ng-if="item.success!==true" class="text-danger">
                <!--<i class="fa fa-times-circle" aria-hidden="true"></i>-->{{item.success}}
              </span>
          </td>
        </tr>
        </tbody>
      </table>
    </div>
    <div class="m-t-30" ng-show="showSuccessInfo">
      <div class="form-group text-center">
        <h5>文件全部上传成功！</h5>
      </div>
    </div>
  </div>
  <!--<div class="modal-footer">-->
  <!--<button class="btn btn-success btn-sm" ng-click="save()">确定申诉</button>-->
  <!--<button class="btn btn-warning btn-sm" ng-click="close()">取消</button>-->
  <!--</div>-->
</div>


